package Entidad;

import java.util.ArrayList;
import java.util.List;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.OneToMany;


@Entity

@DiscriminatorValue("Director")
/**
 * Director
 */
public class Director extends Person {
  
    @OneToMany(mappedBy="director")
    private List<Movie> peliculas = new ArrayList<>();


    public Director() {
    }
    
   
    public List<Movie> getPeliculas() {
        return peliculas;
    }

    public void setPeliculas(List<Movie> peliculas) {
        this.peliculas = peliculas;
    }
}

